package com.yuejian.neusoft.yuejian_24.service;

import com.yuejian.neusoft.yuejian_24.javaBean.Login;
import com.yuejian.neusoft.yuejian_24.javaBean.Success;
import com.yuejian.neusoft.yuejian_24.javaBean.User;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface UserService {
    @GET("index.php/User/login")
    Call<Login> login(
            @Query("tele") String user_phone,
            @Query("userpass") String user_psd
    );
    @GET("index.php/User/reg")
    Call<Success> reg(
            @Query("phone")String phone,
            @Query("username")String username,
            @Query("pwd")String pwd
    );
    @GET("index.php/User/userinfo")
    Call<User> getuserinfo(
            @Query("uid")String uid
    );
}
